/*
 * Utility.h
 *
 *  Created on: 2011-2-23
 *      Author:蓝达斌
 *
 *   Copyright   : Copyright © 2011 Binda&Aeolus
                   All Rights Reserved
 */


#include<cstdlib>
class Utility
{
	public :
	static int random(int start,int end)
	{
		return (rand() % (end - start + 1) + start);
	}


	template<class Type>
	static void swap(Type& a, Type &b)
	{
		Type temp = b;
				b = a;
				a = temp;
	}

};

